package model

// OrderDetailInExtInfo 为商品列表中获取
type OrderDetailInExtInfo struct {
	OrderDetailID       int64    `json:"id"`
	ProductID           int64    `json:"product_id"`
	ProductName         string   `json:"product_name"`
	ProductSpecID       int64    `json:"product_spec_id"`
	ProductSpecKey      string   `json:"product_spec_key"`
	ProductSpecName     string   `json:"product_spec_name"`
	ProductWithSpecName string   `json:"product_with_spec_name"`
	StorageKey          string   `json:"storage_key"`
	ProductPics         []string `json:"product_pics"`
	Quantity            int32    `json:"quantity"`
	Price               int32    `json:"price"`
}

// OrderExtInfo 下单的扩展信息
type OrderExtInfo struct {
	BrandName                 string                  `json:"brand_name"`
	BrandPic                  string                  `json:"brand_pic"`
	BrandTel                  string                  `json:"brand_tel"`
	StoreName                 string                  `json:"store_name,omitempty"`
	StorePic                  string                  `json:"store_pic,omitempty"`
	StoreTel                  string                  `json:"store_tel,omitempty"`
	ActivityOwner             string                  `json:"activity_owner"`
	ActivityName              string                  `json:"activity_name"`
	ActivityTel               string                  `json:"activity_tel"`
	ActivityInventoryFreezeNo string                  `json:"activity_inventory_freeze_no"`
	ParentActivityOwner       string                  `json:"parent_activity_owner,omitempty"`
	ParentActivityName        string                  `json:"parent_activity_name,omitempty"`
	ParentActivityTel         string                  `json:"parent_activity_tel,omitempty"`
	BuyerNickName             string                  `json:"buyer_nick_name"`
	BuyerPic                  string                  `json:"buyer_pic"`
	BuyerTel                  string                  `json:"buyer_tel"`
	WarehouseID               int64                   `json:"warehouse_id"`
	WarehouseInfo             WarehouseInfo           `json:"warehouse_info"`
	Details                   []*OrderDetailInExtInfo `json:"details"`
	AwardID                   int64                   `json:"award_id,omitempty"`
}
